package org.csu.hotelsys.service;

import org.csu.hotelsys.domain.Room;
import org.csu.hotelsys.persistence.RoomMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
public class RoomService {

    @Autowired
    public RoomMapper roomMapper;

    public List<Room> getRoomList(){
        return roomMapper.getRoomList();
    }

    //根据房型类型查询房屋情况
    public  List<Room> getRoomListbyRoomtype(String roomtype){
        return roomMapper.getRoomListbyRoomtype(roomtype);
    }



}
